const Response = require("../../class/Response");
WSS.get('/bds/getOnlineClientsInfo', async (thisClient, req, res)=>{
    thisClient.sendJson(Response.replyTo(req)
        .setSourceId(thisClient.id)
        .setUrl('/bds/getOnlineClientsInfo/result')
        .setData({...req.body.data, onlineClientsInfo: WSS.clientsManager.getOnlineClientsInfo()})
    );
});

WSS.get('/bds/getOnlinePlayersName', async (thisClient, req, res)=>{
    thisClient.sendJson(Response.replyTo(req)
        .setSourceId(thisClient.id)
        .setUrl('/bds/getOnlinePlayersName/result')
        .setData({...req.body.data, onlinePlayersName: WSS.clientsManager.getOnlinePlayersName()})
    );
});